home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / impPackRow.z / impPackRow
Encoding:
Text File  |  1998-10-30  |  2.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. iiiimmmmppppPPPPaaaacccckkkkRRRRoooowwww((((3333))))                    IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo                     iiiimmmmppppPPPPaaaacccckkkkRRRRoooowwww((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      impPackRow, impUnpackRow - convert pixel width between 1 and 2 bytes
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<iiiimmmmpppp....hhhh>>>>
  13.  
  14.      vvvvooooiiiidddd iiiimmmmppppPPPPaaaacccckkkkRRRRoooowwww((((uuuucccchhhhaaaarrrr____tttt ****ddddppppttttrrrr,,,, sssshhhhoooorrrrtttt ****ssssppppttttrrrr,,,, iiiinnnntttt nnnn))));;;;
  15.  
  16.      vvvvooooiiiidddd iiiimmmmppppUUUUnnnnppppaaaacccckkkkRRRRoooowwww((((sssshhhhoooorrrrtttt ****ddddppppttttrrrr,,,, uuuucccchhhhaaaarrrr____tttt ****ssssppppttttrrrr,,,, iiiinnnntttt nnnn))));;;;
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      _i_m_p_P_a_c_k_R_o_w converts the array of _s_h_o_r_t integers pointed to by _s_p_t_r into
  20.      the array of _u_n_s_i_g_n_e_d _c_h_a_r values pointed to by _d_p_t_r. Source data that is
  21.      to large to fit in a character is truncated. For example, the source
  22.      value 0x0B56 will be converted into 0x56 in the destination array.
  23.  
  24.      _i_m_p_U_n_p_a_c_k_R_o_w converts the array of _u_n_s_i_g_n_e_d _c_h_a_r values pointed to by
  25.      _s_p_t_r into the array of _s_h_o_r_t integers pointed to by _d_p_t_r.  For example,
  26.      the source value 0x56 will be converted into 0x0056 in the destination
  27.      array.
  28.  
  29.      The parameter _n specifies the number of elements in the source and
  30.      destination arrays.
  31.  
  32. NNNNOOOOTTTTEEEE
  33.      The allocation of storage for the source and destination arrays is the
  34.      responsibility of the caller.
  35.  
  36. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  37.      libimp(3)
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.